<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>json测试页</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<script type="text/javascript" src="js/common/system_config.js"></script>
<script type="text/javascript" src="js/common/jquery-1.7.min.js"></script>
</head>
<body>
	<a href="javascript:void(0)" onclick="f1()">测试</a>
</body>
<script type="text/javascript">
	var jApp = $.noConflict(true);

	function f1() {
		var getUserUrl = JB.calUrl('userJson/getUserJson.action');
		alert(getUserUrl)
		var params = {
		                    "user.userName": "admin",
		                    "user.userPass": "admin"
		                };
		jApp.getJSON(getUserUrl, params, getUserSuccess);
	}
	function getUserSuccess(data){
		alert(data.responseData.userName);
	}
</script>
</html>
